package pl.edu.mimuw.irs.rcp.controller.contributor;

import org.eclipse.gef.ui.actions.ActionBarContributor;
import org.eclipse.gef.ui.actions.RedoRetargetAction;
import org.eclipse.gef.ui.actions.UndoRetargetAction;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.ui.actions.ActionFactory;

public class IRSWorkflowActionBarContributor extends ActionBarContributor {

	// *** Attributes

	// *** Constructors
	
	public IRSWorkflowActionBarContributor() {
		
	}
	
	// *** Methods
	
	@Override
	public void contributeToMenu(IMenuManager menuManager) {
		super.contributeToMenu(menuManager);
		
		menuManager.add(getAction(ActionFactory.UNDO.getId())); 
		menuManager.add(getAction(ActionFactory.REDO.getId()));
	}

	@Override
	protected void buildActions () {
		addRetargetAction(new UndoRetargetAction()); 
		addRetargetAction(new RedoRetargetAction());
	}

	@Override
	protected void declareGlobalActionKeys() {
		
	}
}
